<?php
ActiveRecord\Config::initialize(function($cfg)
 {
    global $config;
     $cfg->set_model_directory('application/model');
     $cfg->set_connections(array(
         'development' => $config['type'].'://'.$config['user'].':'.$config['pass'].'@'.$config['host'].'/'.$config['name']));
 });




//var_dump($user);
class RADT_Model{

public $db=null;

	function __construct(){
	 $y=ActiveRecord\ConnectionManager::get_connection();
	//var_dump($y);
         //$pdo_obj=new RADT_PDO();
		$this->db=$y;//$pdo_obj->pdo;
	
	}
	

}